<head>
   <script type="text/javascript">
						$(function() {
				$("table")
					.tablesorter({widthFixed: true}) 
					<!--.tablesorter({debug: true})-->
					.tablesorterPager({container: $("#pager1")});
			});
			
    </script>   
    
     <table id="background-image"> 
                    <thead> 
                        <tr> 
                            <th>Produsen</th>
                            <th>Type</th>
                            <th>Model</th>
                            <th>Jenis Mobil</th>
                            <th>Daya</th>
                            <th>Nomor Plat</th> 
                            <th>Transmisi</th>
                            <th>Warna</th>
                            <th>Tarif/hari</th>
                            
                        </tr> 
                    </thead> 
                    <tbody> 
                        <?php foreach ($car as $car1){?>                        
                        <tr>
                        	<td><?php echo $car1['produsen'];?></td> 
                        	<td><?php echo $car1['type'];?></td> 
                        	<td><?php echo $car1['model'];?></td> 
                            <td><?php echo $car1['car_name'];?></td>
                        	<td><?php echo $car1['daya'];?> Orang</td> 
                            
                            <td><?php echo $car1['car_license'];?></td> 
                            <td><?php echo $car1['transmisi'];?></td>
                            <td width="13%"><?php echo $car1['warna'];?></td> 
                            <td><?php echo $car1['tarif'];?></td>
                            <td align="center" width="13%"><a href="<?php echo site_url('car/edit/' . $car1['car_id'])?>">Ubah</a> | <a href="<?php echo site_url('car/delete/'. $car1['car_id'])?>" onclick="return confirm('Apakah Anda ingin menghapus data <?php echo $car1['car_name'];?>?')">Hapus</a></td>                          
                        </tr> 
                        <?php } ?>
                       
                   </tbody> 
                    
				</table> 
 	<form>
                        <img src="<?php echo base_url();?>img/first.png" class="first" title="back to first"/>
                        <img src="<?php echo base_url();?>img/prev.png" class="prev" title="previous"/>
                        <input type="text" class="pagedisplay"/>
                        <img src="<?php echo base_url();?>img/next.png" class="next" title="next"/>
                        <img src="<?php echo base_url();?>img/last.png" class="last" title="go to last"/>
                       
                        <select class="pagesize">
                            <option selected="selected"  value="10">10</option>
                            <option value="15">15</option>
                            
                        </select>
                    
                    </form>
